gl: Increate the cache check frequency
authorMatthias Clasen <mclasen@redhat.com>
Sat, 12 Oct 2019 16:34:56 +0000 (12:34 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 12 Oct 2019 16:37:11 +0000 (12:37 -0400)
Otherwise, we spread the cache over more atlases
than necessary, increasing the amount of texture
changes in each frame.

gsk/gl/gskglglyphcache.c
gsk/gl/gskgliconcache.c

index 33ef45279e7f788282e8d1a4a00cfaf84f17ee3d..f6c00d30469e872eb21f5feecd856aed4cecad81 100644 (file)
@@ -24,7 +24,7 @@
  * atlas and all the items it contained.
  */
 
-#define MAX_FRAME_AGE (5 * 60)
+#define MAX_FRAME_AGE (60)
 #define MAX_GLYPH_SIZE 128 /* Will get its own texture if bigger */
 
 static guint    glyph_cache_hash       (gconstpointer v);
index 31ede9bcdf91fd77481d1bcdce3d22657b9b5b5d..fc518b88513c0e1623aa7f02f415b9cf44751f84 100644 (file)
@@ -5,7 +5,7 @@
 
 #include <epoxy/gl.h>
 
-#define MAX_FRAME_AGE (5 * 60)
+#define MAX_FRAME_AGE 60
 
 typedef struct
 {